package com.wzj.yygh.hosp.mongotest;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @Description
 * @Author wzj
 */
@Data
@Document("user")  //指定mongodb的集合名字
public class User {

    @Id
    private String id;
    private String name;
    private Integer age;
    private String email;
    private String creatData;
}
